package main;

import generalManagerLogic.MockGeneralManagerLogic;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

import logicInterface.GeneralManagerLogicInterface;
import components.MyFrame;

public class Main {
	private static MyFrame mf;
	private static GeneralManagerLogicInterface logic;

	public static void main(String[] args) {
		try {
			logic=(GeneralManagerLogicInterface) Naming.lookup("rmi://localhost:8888/generalManagerLogic") ;
		} catch (MalformedURLException | RemoteException | NotBoundException e) {
			e.printStackTrace();
		}
		mf=new MyFrame();
	}

	public static MyFrame getMf() {
		return mf;
	}

	public static GeneralManagerLogicInterface getLogic() {
		return logic;
	}

}
